package com.otp.repository;

import com.otp.pojo.entity.Message;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface MessageRepository extends JpaRepository<Message, Long> {
    List<Message> findByStudentId(Long studentId);
    List<Message> findByHasUnreadReplyTrueAndStudentId(Long studentId);
}